package com.tbit.uqbike.client.service.impl;

import com.tbit.uqbike.client.dao.core.RideLogDetailDao;
import com.tbit.uqbike.client.pojo.RideLogDetail;
import com.tbit.uqbike.client.service.RideLogDetailService;
import com.tbit.uqbike.client.util.DateTimeUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Author: chen
 * @Description: 订单详细日志
 * @Date: 创建于 16:25 2020/2/15
 */
@Service("rideLogDetailService")
public class RideLogDetailServiceImpl implements RideLogDetailService {
    @Autowired
    private RideLogDetailDao rideLogDetailDao;

    @Override
    public void insert(RideLogDetail rideLogDetail) {
        rideLogDetail.setOpaTime(DateTimeUtil.getNowTime());
        rideLogDetailDao.insert(rideLogDetail);
    }
}
